Copyright(C) 1994 Terumasa KODAKA , Takeshi KONO ■GP-IB BIOS o The vector address of the GP-IB BIOS (INT D1h) is not set at system startup. Before using the GP-IB BIOS, you must set the vector address of INT D1h in advance. When the GP-IB BIOS ROM segment is D400h, information about the vector address is stored from D540:0000h. -----------+--------------+------------------------------ Address | Value | Meaning -----------+--------------+------------------------------ D540:0000h | 01h | Number of entries D540:0001h | 00h | Unused D540:0002h | 00h | Unused D540:0003h | 00h | Unused D540:0004h | D1h | Vector number D540:0005h | 00h | Unused D540:0006h | OFFSET(WORD) | GP-IB BIOS entry offset | | (GP-IB BIOS entry address segment value is D540h) -----------+--------------+------------------------------ o GP-IB BIOS ROM address can be changed (default D4000h). o The GP-IB BIOS vector number does not have to be INT D1h, but the N88-BASIC interpreter uses INT D1h as the GP-IB BIOS vector number. Table Return Code List ----+------------------------------------------------------------------- AH | Meaning ----+------------------------------------------------------------------- 00h | Processing completed normally | Ended due to delimiter reception (no EOI) during RECEIVE DATA | Ended due to STB reception of RQS bit 1 during EXECUTE SERIAL POLL (no EOI received) 01h | Ended due to delimiter + EOI reception during RECEIVE DATA | Ended due to STB reception with RQS bit 1 and EOI received during EXECUTE SERIAL POLL 02h | Ended due to EOI reception (no delimiter) during RECEIVE DATA 80h | Conditional normal termination | Insufficient storage space for received data during RECEIVE DATA (no delimiter received) | No STB reception of RQS bit 1 during EXECUTE SERIAL POLL F8h | Forced termination due to IFC reception (when slave) FCh | Error detected (GP-IB regulation violation detected) FEh | Forced termination due to time monitoring (timeout) FFh | Illegal call ----+------------------------------------------------------------------- INT D1h - Function 00h Classification GP-IB BIOS Name GP-IB BIOS initialization [INITIALIZE] Target PC-9801-29 (K/N) Input AH=00h ES=Segment address of control information notification area Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related 0000:05C2h INT C5h F800:7FDCh INT D1h - Function 01h Classification GP-IB BIOS Name IFC setting [SET IFC] Target PC-9801-29 (K/N) Input AH=01h BH=Time to activate IFC line (in 100μs units) Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related INT D1h - Function 02h Classification GP-IB BIOS Name Setting REN [SET REN] Target PC-9801-29 (K/N) Input AH=02h Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related INT D1h - Function 03h Classification GP-IB BIOS Name Resetting REN [RESET REN] Target PC-9801-29 (K/N) Input AH=03h Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related INT D1h - Function 04h Classification GP-IB BIOS Name Send data [SEND DATA] Target PC-9801-29 (K・N) Input AH=04h ES:SI=Start address of command storage area BX=Length of command storage area ES:DI=Start address of data storage area CX=Length of data storage area AL=Delimiter specification Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See Technical Data Book Related INT D1h - Function 05h Classification GP-IB BIOS Name Receive data [RECEVIVE DATA] Target PC-9801-29 (K・N) Input AH=05h ES:SI=Start address of command storage area BX=Length of command storage area ES:DI=Start address of data storage area CX=Length of data storage area AL=Delimiter specification Output AH=Return code Registers other than DS, SS, and SP are not guaranteed. Explanation o See the technical data book. Related INT D1h - Function 06h Classification GP-IB BIOS Name Execute serial poll [EXECUTE SERIAL POLL] Target PC-9801-29 (K/N) Input AH=06h ES:DI=First address of talker information list CX=Number of entries in talker information list Output AH=Return code Registers other than DS, SS, and SP are not guaranteed. Explanation o See the technical data book. Related INT D1h - Function 07h Classification GP-IB BIOS Name Set SRQ [SET SRQ] Target PC-9801-29 (K/N) Input AH=07h BH=STB value sent during serial poll BL=EOI specification Output AH=Return code Registers other than DS, SS, and SP are not guaranteed. Explanation o See Technical Data Book Related INT D1h - Function 08h Classification GP-IB BIOS Name Execute parallel poll [EXECUTE PARALLEL POLL] Target PC-9801-29 (K・N) Input AH=08h ES:DI=Address of listener information list CX=Number of entries in listener information list BH=Parallel poll start specification BL=PPU specification Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related INT D1h - Function 09h Classification GP-IB BIOS Name Set PPR mode [SET PPR MODE] Target PC-9801-29 (K・N) Input AH=09h BH=PPR mode Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related INT D1h - Function 0Ah Classification GP-IB BIOS Name Set timeout [SET TIME OUT] Target PC-9801-29 (K/N) Input AH=0Ah BH=Timeout value 00h: No timeout check 01-FFh: Timeout check time (in seconds) Output AH=Return code Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related INT D1h - Function 0Bh Classification GP-IB BIOS Name Check STB [CHECK STB] Target PC-9801-29 (K/N) Input AH=0Bh Output AH=Return code DH=Currently held STB value DL=Currently held EOI designation Registers other than DS, SS, and SP are not guaranteed Explanation o See the technical data book Related